<template>
  <div class="zi4">
    <input type="text" name="" id="" placeholder="组件4值1">
    <input type="text" name="" id="" placeholder="组件4值2">
  </div>
</template>

<script>
export default {
  activated(){
    alert('触发keep-alive----activated钩子函数');
  },
  deactivated(){
    alert('触发keep-alive----deactivated钩子函数');
  }
}
</script>

<style scoped>
  input{
    border: 1px solid black;
  }
</style>